package com.xbongbong.autoconfigure.data.elasticsearch;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
 * Configuration properties for Elasticsearch.
 *添加xpack的处理
 *
 * @author Artur Konczak
 * @author Mohsin Husen
 * @author  梁鲁江
 * @since 1.1.0
 */
@ConfigurationProperties(prefix = "spring.data.elasticsearch")
@ToString
@Getter
@Setter
public class ElasticsearchProperties {
    private XPack xpack;
    /**
     * Elasticsearch cluster name.
     */
    private String clusterName = "elasticsearch";

    /**
     * Comma-separated list of cluster node addresses.
     */
    private String clusterNodes;
    /**
     * BI连接节点
     */
    private String biClusterNodes;

    /**
     * Additional properties used to configure the client.
     */
    private Map<String, String> properties = new HashMap<>();

}
